package com.wms.security;

import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

@Component
public class MyAuthenticationProvider extends DaoAuthenticationProvider {

    public MyAuthenticationProvider(PasswordEncoder passwordEncoder, MyUserDetailsService userDetailsService){
        setPasswordEncoder(passwordEncoder);
        setUserDetailsService(userDetailsService);
    }

}
